<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    
    <title>用户中心</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="keywords" content="fly,layui,前端社区">
	<meta name="description" content="Fly社区是模块化前端UI框架Layui的官网社区，致力于为web开发提供强劲动力">
	<link rel="stylesheet" href="../res/layui/css/layui.css">
	<link rel="stylesheet" href="../res/css/global.css">
	<script src="../res/layui/layui.js"></script>
</head>

<body>

	<!-- <div class="header">
		<div class="main">
			<a class="logo" href="../post/index.html" title="网博">网博社区</a>
			<div class="nav">
				<a class="nav-this" href="../post/index.html">
					<i class="iconfont icon-wenda"></i>问答
				</a>
			</div>

			<div class="nav-user">
				登入后的状态

				<a class="avatar" href="home.html">
					<img src="../res/images/avatar/11.jpg">
					<cite>贤心</cite>
					<i>VIP2</i>
				</a>
				<div class="nav">
					<a href="set.html"><i class="iconfont icon-shezhi"></i>设置</a>
					<a href="login.html"><i class="iconfont icon-tuichu" style="top: 0; font-size: 22px;"></i>退了</a>
				</div>
			</div>
		</div>
	</div> -->


	<div class="main fly-user-main layui-clear">
		<ul class="layui-nav layui-nav-tree layui-inline" lay-filter="user">
			<li class="layui-nav-item"><a href="home.html"> <i class="layui-icon">&#xe609;</i> 我的主页 </a></li>
			<li class="layui-nav-item layui-this"><a href="index.html"> <i class="layui-icon">&#xe612;</i> 用户中心 </a>
			</li>
			<li class="layui-nav-item "><a href="set.html"> <i class="layui-icon">&#xe620;</i> 基本设置 </a></li>
			<li class="layui-nav-item"><a href="message.html"> <i class="layui-icon">&#xe611;</i> 我的消息 </a></li>
			<li class="layui-nav-item "><a href="vip.html"> <i class="layui-icon">&#xe61a;</i> 账户充值/会员 </a></li>
			<li class="layui-nav-item"><a href="report.html"> <i class="layui-icon">&#xe61a;</i> 审核举报 </a></li>
		</ul>

		<div class="site-tree-mobile layui-hide">
			<i class="layui-icon">&#xe602;</i>
		</div>
		<div class="site-mobile-shade"></div>

		<div class="fly-panel fly-panel-user" pad20>

			<div class="layui-tab layui-tab-brief" lay-filter="user">
				<ul class="layui-tab-title" id="LAY_mine">
					<li data-type="mine-jie" lay-id="index" class="layui-this">我发的帖（<span>89</span>）</li>
					<li data-type="collection" data-url="/collection/find/" lay-id="collection">我收藏的帖（<span>16</span>）
					</li>
				</ul>
				<div class="layui-tab-content" style="padding: 20px 0;">
					<div class="layui-tab-item layui-show">
					
						<ul class="mine-view jie-row">
						<!-- 循环打印 -->
						<c:forEach items="${requestScope.userPost }" var="uPost" varStatus="loop">
							<li>
								<a class="jie-title" href="showPostDetail" target="myIframe">${uPost.postTitle }</a>
								<i><fmt:formatDate value="${uPost.postCreateTime }" pattern="yyyy-MM-dd HH:mm"/></i>
								<c:if test="${uPost.postStatus == '未结贴' }">
									<a class="mine-edit" href="/jie/edit/8116">编辑</a>
								</c:if>
								<em>${uPost.postBrowse }阅/${uPost.postReply }答</em>
							</li>
						</c:forEach>
						</ul>
						
						<div id="LAY_page"></div>
					</div>
					<div class="layui-tab-item">
						<ul class="mine-view jie-row">
						<!-- 循环打印 -->
						<c:forEach items="${requestScope.userCollectPost }" var="uCollectPost" varStatus="loop">
							<li>
								<a class="jie-title" href="showPostDetail" target="myIframe">${uCollectPost.postTitle }</a>
								<i><fmt:formatDate value="${userCollect[loop.count-1].collectCreateTime }" pattern="yyyy-MM-dd HH:mm"/></i> 
							</li>
						</c:forEach>
						</ul>
						<div id="LAY_page1"></div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- <div class="footer">
		<p><a href="#">网博社区</a> 2017 &copy; <a href="#/">njwangbo.com</a></p>
		<p>
			<a href="#" target="_blank">产品授权</a>
			<a href="#" target="_blank">网博社区</a>
			<a href="#" target="_blank">微信公众号</a>
		</p>
	</div> -->

	<script>
		layui.use('element', function () {
			var element = layui.element();
		});
	</script>
	<script>

		layui.cache.page = '';
		layui.cache.user = {
			username: '游客'
			, uid: -1
			, avatar: '../res/images/avatar/00.jpg'
			, experience: 83
			, sex: '男'
		};
		layui.config({
			version: "2.0.0"
			, base: '../res/mods/'
		}).extend({
			fly: 'index'
		}).use('fly');
	</script>
</body>

</html>
